package com.commander.spring.cloud.feignservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * description:
 * <p>
 * Date: 2020-06-05
 * <p>
 * Time: 17:09
 *
 * @author zhangxin
 */
@FeignClient("demo-provider")
@RequestMapping(path = "/user")
public interface FeignUserService {
	
	@RequestMapping(path = "/id", method = RequestMethod.GET)
	Object getById(@RequestParam("id") String id);
}
